#define  _CRT_SECURE_NO_WARNINGS	1
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef int SLDatatype;
typedef struct Sqlist
{
	SLDatatype data;
	struct Sqlist* next;
}SLND;

void my_printf(SLND* ps)
{
	assert(ps);
	while (ps)
	{
		printf("%d->", ps->data);
		ps = ps->next;
	}
	printf("NULL");
}
void test()
{
	SLND* plist=NULL;
	SLND* node1 = (SLND*)malloc(sizeof(SLND));
	SLND* node2 = (SLND*)malloc(sizeof(SLND));
	SLND* node3 = (SLND*)malloc(sizeof(SLND));

	node1->data = 1;
	node2->data = 2;
	node3->data = 3;

	node1->next = node2;
	node2->next = node3;
	node3->next = NULL;

	plist = node1;
	my_printf(plist);
}
int main()
{
	test();
	return 0;
}
